<!DOCTYPE html>
<html lang="en">
<head>
    <meta charset="UTF-8">
    <meta name="viewport" content="width=device-width, initial-scale=1.0">
    <meta http-equiv="X-UA-Compatible" content="ie=edge">
    <title>Document</title>
</head>
<body>
    <script>
    // var arrayLike = {
    //     "0": "zhangsan",
    //     "1": "lisi",
    //     "2": "wangwu",
    //     "length": 3
    // };
    // var ary = Array.from(arrayLike);
    // console.log(ary);


    let arrayLike = {
        '0': 1,
        '1': 2,
        '2': 3,
        length:3
    };
    var ary = Array.from(arrayLike, item => item * 2);
    console.log(ary);
    </script>
</body>
</html>